//
//  AuthenticationSuccessVC.m
//  MyProject
//
//  Created by jiaming yan on 2018/5/28.
//  Copyright © 2018年 yanjiaming. All rights reserved.
//

#import "AuthenticationSuccessVC.h"
#import "CompanyReviewViewController.h"

@interface AuthenticationSuccessVC ()

@end

@implementation AuthenticationSuccessVC
- (void)dealloc
{
    [[NSNotificationCenter defaultCenter] removeObserver:self];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.navigationItem.title = @"认证成功";
    self.view.backgroundColor = kWhiteColor;
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(endAuthentication) name:@"endAuthentication" object:nil];;
}
-(void)endAuthentication{
    [self.navigationController popViewControllerAnimated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)nextClick:(id)sender {
    CompanyReviewViewController *vc = [[CompanyReviewViewController alloc] init];
    vc.companyId = self.authenticationModel.companyId;
    UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:vc];
    [self presentViewController:nav animated:NO completion:nil];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
